﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Web.Security;

namespace iHouse.Common.Membership
{
    public interface IRoleService
    {
        IEnumerable<string> FindAll();
        IEnumerable<string> FindByUserName(string userName);
        IEnumerable<string> FindUserNamesByRole(string roleName);
        void AddToRole(MembershipUser user, string roleName);
        void RemoveFromRole(MembershipUser user, string roleName);
        bool IsInRole(string userName, string roleName);
        void Create(string roleName);
        void Delete(string roleName);
        bool RoleExists(string roleName);
    }
}
